package com.waitingresult;

import cn.hutool.json.JSONUtil;
import lombok.Data;

/**
 * @Author: WangShuai
 * @CreateTime: 2022-10-30  17:09
 * @Description: TODO
 * @Version: 1.0
 */
public class Jdk10Demo {
    @Data
    class User {
        private String name;
        private Integer age;
    }

    public static void main(String[] args) {
        var i = 10;
        var stringstr = "test";
        // 多行字符串
        String json = """
                {
                    name:"zhangsna",
                    age: 18
                }
                """;
        User user = JSONUtil.toBean(json, User.class);
        System.err.println(i);
        System.err.println(stringstr);
    }
}
